{% extends 'ag_base/backend.html.twig' %}

{% block body_params %}class="skin-black"{% endblock %}

{% block container %}

    <div class="wrapper row-offcanvas row-offcanvas-left">

        {% include 'menu.html.twig' with {'option': 'dasboard'} %}

        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="right-side">                
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                    Dashboard
                </h1>
            </section>

            <!-- Main content -->
            <section class="content">

                <div class="row">
                    <div class="col-xs-12">
                        <div class="box">
                            <div class="box-body">

                                <h4>Thank you for using the CRUD Admin Generator!</h4>

                                <p>To generate the CRUD, you first need to edit the file /src/app.php with the connection data to your database.</p>

                                <p>Then you just need to run the following command: <br />

                                <strong>php console generate:admin</strong><br /></p>

                                <p><strong>And this is it!</strong></p>

                                <p>In the left menu has a section generated by each table in the database that you set. Now will be much easier to list, create, edit and delete items!</p>

                                <p><strong>The generated code is fully configurable and editable</strong>, you just have to edit the corresponding files:<br />
                                <ul>
                                <li>The <strong>controller</strong> you can find it in /web/controllers/TABLE_NAME/index.php</li>
                                <li>The <strong>views</strong> are in /web/views/TABLE_NAME</li>
                                </ul>
                                </p>

                                <p>We used a bootstrap based design, is this: <a href="http://almsaeedstudio.com/AdminLTE/index.html">http://almsaeedstudio.com/AdminLTE/index.html</a></p>

                                <p>You can also customize this dashboard page with the information you want, you just have to edit the file /web/views/ag_dashboard.html.twig</p> 
                                
                                <p><strong>Important!</strong> If you make changes to any of the files do not ever use the "generate:admin" command or your changes will be overwritten.</p>               

                                <br />
                                <h4>Contributing</h4>
                                <p>If you want to contribute code to CRUD Admin Generator, We are waiting for your pull requests!</p>
                                <p>The code is in Github: <a href="https://github.com/jonseg/crud-admin-generator">CRUD Admin Generator</a></p>

                                <p>Some suggestions for improvement could be:
                                    <ul>
                                        <li>Different form fields depending on data type.: datetime, time...</li>
                                        <li>Create admin user with a login and logout page.</li>
                                        <li>Generate CRUD for tables with more than one primary key.</li>
                                        <li>Any other useful functionality!</li>
                                    </ul>
                                </p>
                                
                                <br />
                                <h4>Author</h4>                
                                <p><strong>Jon Segador Pombo</strong><br />
                                <strong>Email:</strong> <a href="mailto:info@jonsegador.com">info@jonsegador.com</a><br />
                                <strong>Personal site:</strong> <a href="http://jonsegador.com">http://jonsegador.com</a><br />
                                <strong>Twitter:</strong> <a href="https://twitter.com/jonseg">@jonseg</a><br />
                                <strong>CRUD Admin Generator:</strong> <a href="http://crud-admin-generator.com">http://crud-admin-generator.com</a><br />
                                </p>

                            </div>
                        </div>
                    </div>
                </div>

            </section><!-- /.content -->
        </aside><!-- /.right-side -->
    </div><!-- ./wrapper -->

{% endblock %}
